package com.ask.service;

import com.ask.entity.Dish;
import com.ask.result.PageResult;
import com.ask.result.Result;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface RecommendService {
    /**
     * 生成用户的每日推荐
     *
     * @param userId
     * @return
     */
    List<Dish> generateDailyRecommendations(Long userId);

    /**
     * 分页查询每日推荐
     *
     * @param userId
     * @param page
     * @param size
     * @return
     */
    PageResult getDailyRecommendations(Long userId, int page, int size);

    List<Long> getSimilarItems(Long userId);

    Result recommendItems(Long itemId, int topN);
}
